def func1():
    print("func1开始执行")
    print(1 / 0) # 异常在func1内没有捕获


def func2():
    print("func2开始执行")
    func1()


def main():
    # 在main中捕获异常
     try:
        func2()
     except Exception as e:
         print("出现异常了",e)


main()
